package cn.gson.tj_springboot.model.service.PreSalesService;

import cn.gson.tj_springboot.model.mapper.PreSalesMapper.DemandMapper;
import cn.gson.tj_springboot.model.pojos.Demand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class DemandService {
    @Autowired
    DemandMapper demandMapper;

    public List<Demand> findAllDemand(){
        return demandMapper.findAllDemand();
    }
}
